<?php

function make_guid($id, $ver) {
    return array($id => $ver);
}

function guid_from_raw($str) {
    $a = split(':', $str);
    return make_guid($a[0], $a[1]);
}

function guid_to_raw($guid) {
    foreach ($guid as $k => $v) {
        return "$k:$v";
    }
}

?>